<?php get_header(); ?>

	<div id="content" class="narrowcolumn">

		<?php if (have_posts()) : ?>

		<?php $i=0; while (have_posts()) : the_post(); $i++; ?>

			<div class="post" id="post-<?php the_ID(); ?>">
                <div class="post-left">
                    <?php the_content('',FALSE,''); ?>
                </div>
                <?php if(get('gia_tri_1')!='' || get('dia_chi')!='' || get('dien_tich')!='' || get('thong_tin_so_luoc')!= '') { ?>
                    <div class="post-right">
                        <p><span class="row-title">Giá trị: </span><span class="row-content"><?php echo get('gia_tri_1'); ?></span></p>
                        <p><span class="row-title">Địa chỉ: </span><span class="row-content"><?php echo get('dia_chi'); ?></span></p>
                        <p><span class="row-title">Diện tích: </span><span class="row-content"><?php echo get('dien_tich'); ?></span></p>
                        <div><span class="row-title">Thông tin sơ lược: </span><div class="row-content"><?php echo get('thong_tin_so_luoc'); ?></div></div>
                    </div>
                <?php } ?>
				
                <div class="clear"></div>
                <!-- <div class="postmetadata">
					<p><a href="<?php the_permalink() ?>">Read Full Article</a></p>
                </div> -->
			</div>

		<?php endwhile; ?>
		
		<div class="entry">
			<?php obwp_google_468_ads_show(); ?>
		</div>

		<div class="navigation">
			<?php if(!function_exists('wp_pagenavi')) : ?>
            <div class="alignleft"><?php next_posts_link('Previous') ?></div>
            <div class="alignright"><?php previous_posts_link('Next') ?></div>
            <?php else : wp_pagenavi(); endif; ?>
		</div>

	<?php else : ?>

		<h2 class="center">Not Found</h2>
		<?php include (TEMPLATEPATH . '/searchform.php'); ?>

	<?php endif; ?>

	</div>

<?php get_footer(); ?>
